package im.yisme.controler;

import im.yisme.model.service.LyricsRepositoryService;
import im.yisme.model.service.ModelServiceProvider;
import im.yisme.vo.LyricsVO;
import im.yisme.controler.service.LyricsCtrlService;

public class LyricsCtrl implements LyricsCtrlService{

	private static LyricsCtrl ctrl;
	private LyricsRepositoryService service;
	
	private LyricsCtrl(){
		service = ModelServiceProvider.getLyricsRepositoryService();
	}
	
	public static LyricsCtrl getInstance(){
		return ctrl == null ? ctrl = new LyricsCtrl() : ctrl;
	}

	
	public long addLyricsToRepository(LyricsVO toAdd) {
		// TODO Auto-generated method stub
		return service.addLyricsToRepository(toAdd);
	}

	
	public boolean removeLyricsFromRepository(LyricsVO toRemove) {
		// TODO Auto-generated method stub
		return service.removeLyricsFromRepository(toRemove);
	}

	
	public boolean alterLyricsInfo(LyricsVO lyricsVO) {
		// TODO Auto-generated method stub
		return service.alterLyricsInfo(lyricsVO);
	}
	
	public LyricsVO findLyrics(long lyricsId){
		return service.findLyrics(lyricsId);
	}
}
